/**
 * jims
 */
package com.jims.master.modules.finance.entity;

import com.jims.master.modules.doctor.entity.PatVisit;
import com.jims.master.modules.doctor.entity.PatVisitIndex;
import org.hibernate.validator.constraints.Length;
import com.jims.master.common.persistence.DataEntity;

/**
 * 病人预交金记录Entity
 * @author 赵宁
 * @version 2017-03-28
 */
public class PatPrepayment extends DataEntity<PatPrepayment> {
	
	private static final long serialVersionUID = 1L;
	private String patientId;		// 病人ID
	private String visitId;		// 住院ID
	private String rcptNo;
	private String acctNo;		// 结账号
	private Double amount;		// 金额
	private String payWay;		// 支付方式
	private String cardNo;		// 支付卡号
	private String type;		// 类型(1.收款，2.作废 3：结算 4：退款)
	private String refundedUser; // 退费人员
	private String refundedId;		// 退费号
	private String startDate;
	private String endDate;

	private PatVisit patVisit;
	private PatVisitIndex patVisitIndex;
	private String name;
	private String idNo;
	private String visitNo;
	private int money;//
	private String wardCode;
	private String oneCardNo;//一卡通卡号

	private String status;//判断是否是预交金列表查询


	
	public PatPrepayment() {
		super();
	}

	public PatPrepayment(String id){
		super(id);
	}

	public String getVisitNo() {
		return visitNo;
	}

	public void setVisitNo(String visitNo) {
		this.visitNo = visitNo;
	}

	@Length(min=1, max=64, message="病人ID长度必须介于 1 和 64 之间")
	public String getPatientId() {
		return patientId;
	}

	public void setPatientId(String patientId) {
		this.patientId = patientId;
	}
	
	@Length(min=1, max=64, message="住院ID长度必须介于 1 和 64 之间")
	public String getVisitId() {
		return visitId;
	}

	public void setVisitId(String visitId) {
		this.visitId = visitId;
	}

	public String getAcctNo() {
		return acctNo;
	}

	public String getRcptNo() {
		return rcptNo;
	}

	public void setRcptNo(String rcptNo) {
		this.rcptNo = rcptNo;
	}

	public void setAcctNo(String acctNo) {
		this.acctNo = acctNo;
	}

	public Double getAmount() {
		return amount;
	}

	public void setAmount(Double amount) {
		this.amount = amount;
	}

	@Length(min=1, max=1, message="支付方式长度必须介于 1 和 1 之间")
	public String getPayWay() {
		return payWay;
	}

	public void setPayWay(String payWay) {
		this.payWay = payWay;
	}
	
	@Length(min=0, max=200, message="支付卡号长度必须介于 0 和 200 之间")
	public String getCardNo() {
		return cardNo;
	}

	public void setCardNo(String cardNo) {
		this.cardNo = cardNo;
	}

	public String getType() {
		return type;
	}

	public void setType(String type) {
		this.type = type;
	}
	
	@Length(min=0, max=64, message="退费号长度必须介于 0 和 64 之间")
	public String getRefundedId() {
		return refundedId;
	}

	public void setRefundedId(String refundedId) {
		this.refundedId = refundedId;
	}

	public String getRefundedUser() {
		return refundedUser;
	}

	public void setRefundedUser(String refundedUser) {
		this.refundedUser = refundedUser;
	}

	public PatVisit getPatVisit() {
		return patVisit;
	}

	public void setPatVisit(PatVisit patVisit) {
		this.patVisit = patVisit;
	}

	public PatVisitIndex getPatVisitIndex() {
		return patVisitIndex;
	}

	public void setPatVisitIndex(PatVisitIndex patVisitIndex) {
		this.patVisitIndex = patVisitIndex;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getIdNo() {
		return idNo;
	}

	public void setIdNo(String idNo) {
		this.idNo = idNo;
	}

	public Integer getMoney() {
		return money;
	}

	public void setMoney(Integer money) {
		this.money = money;
	}

	public String getWardCode() {
		return wardCode;
	}

	public void setWardCode(String wardCode) {
		this.wardCode = wardCode;
	}

	public String getEndDate() {
		return endDate;
	}

	public void setEndDate(String endDate) {
		this.endDate = endDate;
	}

	public String getStartDate() {
		return startDate;
	}

	public void setStartDate(String startDate) {
		this.startDate = startDate;
	}

	public String getOneCardNo() {
		return oneCardNo;
	}

	public void setOneCardNo(String oneCardNo) {
		this.oneCardNo = oneCardNo;
	}

	public String getStatus() {
		return status;
	}

	public void setStatus(String status) {
		this.status = status;
	}
}